From 23c5f1139109f2385ad2e393de59375c3ed7ca16 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Wed, 10 Dec 2014 22:47:16 -0500 Subject: [PATCH] inspector: Make header buttons as !focus-on-click Moving the focus to the header bar is unexpected and disruptive, so don't do it. --- gtk/inspector/window.c | 1 + gtk/inspector/window.ui | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/gtk/inspector/window.c b/gtk/inspector/window.c index ceba1fae57..1e7223b89e 100644 --- a/gtk/inspector/window.c +++ b/gtk/inspector/window.c @@ -173,6 +173,7 @@ gtk_inspector_window_init (GtkInspectorWindow *iw) { button = gtk_button_new_from_icon_name ("find-location-symbolic", GTK_ICON_SIZE_MENU); + gtk_button_set_focus_on_click (GTK_BUTTON (button), FALSE); gtk_widget_set_halign (button, GTK_ALIGN_START); gtk_widget_set_valign (button, GTK_ALIGN_CENTER); g_signal_connect (button, "clicked", diff --git a/gtk/inspector/window.ui b/gtk/inspector/window.ui index 1cd1d8d3d5..366d1791a5 100644 --- a/gtk/inspector/window.ui +++ b/gtk/inspector/window.ui @@ -20,6 +20,7 @@ True + False Select an Object center center @@ -42,6 +43,7 @@ True + False Show Details center center @@ -64,6 +66,7 @@ True + False Show all Objects center center @@ -93,6 +96,7 @@ True + False Collect Statistics start center @@ -119,6 +123,7 @@ True + False Show Details center center @@ -140,6 +145,7 @@ True + False Show all Resources center center -- 2.30.2